//
//  WmcSettingSubTitleSwitchItemCell.swift
//  YPWatermarkCamera
//
//  Created by Json on 2023/7/21.
//

import UIKit

class WmcSettingSubTitleSwitchItemCell: WmcSettingSwitchItemCell {

    /// subTitleLabel
    private(set) lazy var subTitleLabel: UILabel = {
        let label = UILabel()
        label.font = 14.wmc_font
        label.textColor = UIColor.wmc_grayH8_8A8A99
        return label
    }()
    
    override func makeUI() {
        super.makeUI()
        stackView.addArrangedSubview(subTitleLabel)
    }
    
    override func didSetItem() {
        super.didSetItem()
        let switchItem = (item as? WmcSettingSubTitleSwitchItem) ?? .init()
        subTitleLabel.text = switchItem.subTitle
    }
}
